package com.mallcai.bigdata.ladon.dpl.mapper.export;

import com.mallcai.bigdata.ladon.dpl.entity.export.ExportTask;
import com.mallcai.bigdata.ladon.dpl.mapper.export.provider.ExportTaskProvider;
import org.apache.ibatis.annotations.*;
import org.springframework.stereotype.Repository;

/**
 * @author gst
 * @date 2019-12-30 20:36
 */
@Repository
public interface ExportTaskMapper {

    @InsertProvider(type = ExportTaskProvider.class, method = "insert")
    int insert(ExportTask exportTask);

    @UpdateProvider(type = ExportTaskProvider.class, method = "update")
    int update(ExportTask exportTask);

    @SelectProvider(type = ExportTaskProvider.class, method = "findById")
    ExportTask getById(@Param("id") Long id);

    @DeleteProvider(type = ExportTaskProvider.class, method = "delete")
    int delete(ExportTask exportTask);

}
